<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <title>layout</title>
    <link href="../src/kiss-ui.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <div class="k-header">
        <div class="left">
            <i class="fa fa-chevron-left"></i>
        </div>
        <div class="middle">kiss-ui</div>
        <div class="right">
            <i class="fa fa-ellipsis-h"></i>
        </div>
    </div>
    <div class="k-navbar">
        <a class="navbar-item">
            <i class="fa fa-home icon"></i>
            <span class="name">首页</span>
        </a>
        <a class="navbar-item active">
            <i class="fa fa-list icon"></i>
            <span class="name">通讯</span>
        </a>
        <a class="navbar-item">
            <i class="fa fa-search icon"></i>
            <span class="name">发现</span>
        </a>
        <a class="navbar-item">
            <i class="fa fa-user-o icon"></i>
            <span class="name">我的</span>
        </a>
    </div>
    <div class="k-content">
        <div class="k-content">
            <h1 class="k-panel-title">ActionSheet弹出式菜单</h1>
            <div class="k-panel-body">
                <a class="k-btn" id="js-show">显示弹出式菜单</a>
            </div>
        </div>
        <div class="k-action-sheet">
            <div class="k-mask"></div>
            <div class="k-action-sheet-wrap">
                <div class="k-action-sheet-header">
                    <h1 class="k-action-sheet-title">你需要做什么操作？</h1>
                </div>
                <div class="k-action-sheet-body">
                    <a class="k-action-sheet-menu">收藏</a>
                    <a class="k-action-sheet-menu">关注</a>
                    <a class="k-action-sheet-menu">分享给好友</a>
                </div>
                <div class="k-action-sheet-footer">
                    <a class="k-action-sheet-menu" id="js-close">取消</a>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    document.getElementById("js-show").onclick = function(){
        document.querySelector(".k-action-sheet").classList.add('show')
    };
    document.getElementById('js-close').onclick = function() {
        document.querySelector(".k-action-sheet").classList.remove('show')
    }
</script>
</html>